// @ts-ignore
 
import request from '@/request'

/** addSpaceUser POST /api/spaceUser/add */
export async function addSpaceUserUsingPost(body: API.SpaceUserAddRequest, options?: { [key: string]: any }) {
	return request<API.BaseResponseLong_>('/api/spaceUser/add', {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	})
}

/** deleteSpaceUser POST /api/spaceUser/delete */
export async function deleteSpaceUserUsingPost(body: API.DeleteRequest, options?: { [key: string]: any }) {
	return request<API.BaseResponseBoolean_>('/api/spaceUser/delete', {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	})
}

/** editSpaceUser POST /api/spaceUser/edit */
export async function editSpaceUserUsingPost(body: API.SpaceUserEditRequest, options?: { [key: string]: any }) {
	return request<API.BaseResponseBoolean_>('/api/spaceUser/edit', {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	})
}

/** getSpaceUser POST /api/spaceUser/get */
export async function getSpaceUserUsingPost(body: API.SpaceUserQueryRequest, options?: { [key: string]: any }) {
	return request<API.BaseResponseSpaceUser_>('/api/spaceUser/get', {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	})
}

/** listSpaceUser POST /api/spaceUser/list */
export async function listSpaceUserUsingPost(body: API.SpaceUserQueryRequest, options?: { [key: string]: any }) {
	return request<API.BaseResponseListSpaceUserVO_>('/api/spaceUser/list', {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		data: body,
		...(options || {}),
	})
}

/** listMyTeamSpace POST /api/spaceUser/list/my */
export async function listMyTeamSpaceUsingPost(options?: { [key: string]: any }) {
	return request<API.BaseResponseListSpaceUserVO_>('/api/spaceUser/list/my', {
		method: 'POST',
		...(options || {}),
	})
}
